import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from "../views/Index.vue"
import PageFour from "../views/PageFour.vue"
import Page5 from "../views/Page5.vue"
import MapLeafletNewDemo from "../views/MapLeafletNewDemo.vue"
import MapLeafletMarkerCluster from "../views/MapLeafletMarkerCluster.vue"
import MapDiffrentTheme from "../views/MapDiffrentTheme.vue";
import MapMigration from "../views/MapMigration.vue";
import MapClassification from "../views/MapClassification.vue";
import MapVueComm from "../views/MapClassification.vue";

/* 2D地图 */

//首页
import Map2dIndex from "../views/map2d/list/map2dIndex.vue";
//基本页面
import Map2dBasisPage from "../views/map2d/basis/BasisPage.vue";
//圆形标记页面
import Map2dCircleMarkerPage from "../views/map2d/basis/CircleMarkerPage.vue";
//标记页面
import Map2dMarkerPage from "../views/map2d/basis/MarkerPage.vue";
//自定义标记页面
import Map2dIconMarkerPage from "../views/map2d/basis/IconMarkerPage.vue";
//弹出标记页面
import Map2dPopInfoMarkerPage from "../views/map2d/basis/PopInfoMarkerPage.vue";
//悬浮标记页面
import Map2dTooltipMarkerPage from "../views/map2d/basis/TooltipMarkerPage.vue";
//鹰眼图
import Map2dEyePage from "../views/map2d/basis/EyePage.vue";


//图形矢量图
//多边形
import Map2dPolygonPage from "../views/map2d/shapes/PolygonPage.vue";
//圆形
import Map2dCirclePage from "../views/map2d/shapes/CirclePage.vue";

//矩形
import Map2dRectanglePage from "../views/map2d/shapes/RectanglePage.vue";

//折线
import Map2dPolylinePage from "../views/map2d/shapes/PolylinePage.vue";


//geojson页面
import Map2dGeoJsonLayerPage from "../views/map2d/high/GeoJsonLayerPage.vue";

//不同协议图层
import Map2dTileLayerPage from "../views/map2d/high/TileLayerPage.vue";

//绘制
import Map2dDrawLayerPage from "../views/map2d/high/DrawLayerPage.vue";

//飞线图
import Map2dFlyLayerPage from "../views/map2d/high/FlyLayerPage.vue";

//热力图
import Map2dHeatLayerPage from "../views/map2d/high/HeatLayerPage.vue";

//自动聚合
import Map2dMakerClusterLayerPage from "../views/map2d/high/MakerClusterLayerPage.vue";
//漫游
import Map2dMoveMarkerPage from "../views/map2d/high/MoveMarkerPage.vue";

/* 3D地图首页 */

Vue.use(VueRouter)
const routes = [
    {
        path: "/",
        name: "2D地图",
        component: Index,
        redirect: "/map2dIndex",
        show: true,

        children: [
            {
                path: "/map2dIndex",
                name: "功能总览",
                component: Map2dIndex,
            },
            {
                path: "/map2dBasisPage",
                name: "地图展示",
                component: Map2dBasisPage
            },
            {
                path: "/map2dTileLayerPage",
                name: "不同协议图层",
                component: Map2dTileLayerPage
            },
            {
                path: "/map2dMarkerPage",
                name: "标记",
                component: Map2dMarkerPage
            },
            {
                path: "/map2dCircleMarkerPage",
                name: "圆形标记",
                component: Map2dCircleMarkerPage
            },
            {
                path: "/map2dIconMarkerPage",
                name: "自定义标记",
                component: Map2dIconMarkerPage
            },
            {
                path: "/map2dPopInfoMarkerPage",
                name: "弹出信息标记",
                component: Map2dPopInfoMarkerPage
            },
            {
                path: "/map2dTooltipMarkerPage",
                name: "悬浮信息标记",
                component: Map2dTooltipMarkerPage
            },
            {
                path: "/map2dEyePage",
                name: "鹰眼图",
                component: Map2dEyePage
            },
            {
                path: "/map2dPolygonPage",
                name: "多边形",
                component: Map2dPolygonPage
            },
            {
                path: "/map2dCirclePage",
                name: "圆形",
                component: Map2dCirclePage
            },
            {
                path: "/map2dRectanglePage",
                name: "矩形",
                component: Map2dRectanglePage
            },
            {
                path: "/map2dPolylinePage",
                name: "折线",
                component: Map2dPolylinePage
            },
            {
                path: "/map2dGeoJsonLayerPage",
                name: "geojson",
                component: Map2dGeoJsonLayerPage
            },
            {
                path: "/map2dDrawLayerPage",
                name: "标绘",
                component: Map2dDrawLayerPage
            },
            {
                path: "/map2dFlyLayerPage",
                name: "飞线图",
                component: Map2dFlyLayerPage
            },
            {
                path: "/map2dHeatLayerPage",
                name: "热力图",
                component: Map2dHeatLayerPage
            },
            {
                path: "/map2dMakerClusterLayerPage",
                name: "自动聚合",
                component: Map2dMakerClusterLayerPage
            },
            {
                path: "/map2dMoveMarkerPage",
                name: "漫游",
                component: Map2dMoveMarkerPage
            },


        ]
    },
]

const router = new VueRouter({
    mode: 'hash',
    base: process.env.BASE_URL,
    routes
})

export default router
